﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace School.Controls
{
    public partial class TXTEditor : System.Web.UI.UserControl
    {
        public string Value
        {
            set { CKEditor1.Text = value; }
            get { return CKEditor1.Text; }
        }

        public string Toolbar
        {
            set { CKEditor1.Toolbar = value; }
            get { return CKEditor1.Toolbar; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            CKFinder.FileBrowser _FileBrowser = new CKFinder.FileBrowser();
            _FileBrowser.BasePath = "/ckfinder/";
            _FileBrowser.SetupCKEditor(CKEditor1);            
        }
    }
}